package Interfata;

import java.util.Vector;


public class Vecto implements Structura {
	
	@SuppressWarnings("rawtypes")
	private Vector v=new Vector ();
	
	@SuppressWarnings("unchecked")
	public void adauga(int elem)
	{
		v.add(elem);
	}
	public void sterge(int elem) 
	{
		v.remove(elem);
		
	}
	public void elem(int i)
	{
		System.out.println("Elementul de pe pozitia data este "+ v.get(i));
	}
	
	public void afis()
	{
		int i;
		for (i=0; i< v.size();i++)
		{
			System.out.print(v.get(i)+", ");
		}
		System.out.println(" ");
	}
	
	

}
